package com.tao.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tao.common.utils.PageUtils;
import com.tao.gulimall.product.entity.AttrEntity;
import com.tao.gulimall.product.vo.AttrGroupRelationVo;
import com.tao.gulimall.product.vo.AttrRespVo;
import com.tao.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author htt
 * @email 2967074103@qq.com
 * @date 2024-02-22 15:32:13
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

	void saveAttr(AttrVo attr);

	PageUtils selectBaseList(Map<String, Object> params, Long categoryId, String attrType);

	AttrRespVo getAttrInfo(Long attrId);

	void updateAttr(AttrVo attr);

	List<AttrEntity> getRelaAttr(Long attrGroupId);

	void deleteRelation(AttrGroupRelationVo[] vos);

	PageUtils getNoRelaAttr(Map<String, Object> params, Long attrGroupId);
}

